﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace YSC_Core.BLL.Domain.ViewModels
{
    /// <summary>
    /// 鱼价
    /// </summary>
    public class MarketPriceModel
    {
        /// <summary>
        /// 鱼价详情
        /// </summary>
        public virtual ICollection<MarketPricesModel> MarketPricesModel { get; set; }
        public string Id { get; set; }
        /// <summary>
        /// 鱼种Id
        /// </summary>
      //  [Required]
        public string FishId { get; set; }
        /// <summary>
        /// 鱼种名称
        /// </summary>
        public string FishName { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public string UserId { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 单位Id
        /// </summary>
       // [Required]
        public string MarketId { get; set; }
        /// <summary>
        /// 单位名称
        /// </summary>
        public string MarketName { get; set; }
        /// <summary>
        /// 均价(报价)
        /// </summary>
        public decimal? AveragePrice { get; set; }
        /// <summary>
        /// 单位名称
        /// </summary>
        public string UnitName { get; set; }
        /// <summary>
        /// 单位地址
        /// </summary>
        public string UnitAddress { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        public string ContactsName { get; set; }
        /// <summary>
        /// 联系方式
        /// </summary>
        public string ContactsPhone { get; set; }
        /// <summary>
        /// 鱼种图片
        /// </summary>
        public string FishUrl { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 创建人Id
        /// </summary>
        public string CreateId { get; set; }
        /// <summary>
        /// 报价类型 PricType =1 : 游客报价市场 2： 游客报价产地
        /// </summary>
        public int PricType { get; set; }

        public int Gain { get; set; }
    }


    public class PriceRecordModel
    {
        public List<MarketPriceModel> HistoryDate { get; set; }
        public string Day { get; set; }
        public string MarketName { get; set; }
        public int UnintType { get; set; }
    }
}
